<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT);

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<!--middle area start-->

<div class="middle-area">
  <div class="innermidbox fl">
    <div class="innermidbox-top"></div>
    <div class="innermidbox-mid">
      <div class="pdt5 pdl20 pdr20 pdb5 minheight527px">
        <div class="breadcrumbs"><a href="index.php">Home</a> > <span><?php echo HEADING_TITLE; ?></span></div>
        <div class="spacer10"></div>
        <div class="">
          <h1 class="pagetitle"><?php echo HEADING_TITLE; ?></h1>
          <div class="hline"></div>
          <div class="spacer3"></div>
          <!--left panel start-->
          <?php include('includes/template_left.php'); ?>
          <!--left panel end-->
          <!--right panel start-->
          <div class="rightpanel mgl15 fl">
            <div class="contentContainer cms">
				<?php
				  if ($messageStack->size('account') > 0) {
					echo $messageStack->output('account');
				  }
				?>
				  <h2><?php echo MY_ACCOUNT_TITLE; ?></h2>
				
				  <div class="contentText">
					<ul class="accountLinkList">
					  <li><span class="ui-icon ui-icon-person accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li>
					  <li><span class="ui-icon ui-icon-home accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></li>
					  <li><span class="ui-icon ui-icon-key accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li>
					</ul>
				  </div>
				
				  <h2><?php echo MY_ORDERS_TITLE; ?></h2>
				
				  <div class="contentText">
					<ul class="accountLinkList">
					  <li><span class="ui-icon ui-icon-cart accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></li>
					</ul>
				  </div>
				
				  <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
				
				  <div class="contentText">
					<ul class="accountLinkList">
					  <li><span class="ui-icon ui-icon-mail-closed accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
					  <li><span class="ui-icon ui-icon-heart accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></li>
					</ul>
				  </div>
                  
                  <table width="100%" cellpadding="2" cellspacing="2">
                  	<tr>
                    	<td colspan="3"><h2><?php echo MY_ACCOUNT_TITLE; ?></h2></td>
                    </tr>
                    <tr>
                    	<td><span class="ui-icon ui-icon-person accountLinkListEntry"></span></td>
                        <td><span class="ui-icon ui-icon-home accountLinkListEntry"></span></td>
                        <td><span class="ui-icon ui-icon-key accountLinkListEntry"></span></td>
                    </tr>
                    <tr>
                    	<td><a href="<?=tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL')?>" title="<?=MY_ACCOUNT_INFORMATION?>" ><?=MY_ACCOUNT_INFORMATION?></a></td>
                        <td><a href="<?=tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')?>" title="<?=MY_ACCOUNT_ADDRESS_BOOK?>" ><?=MY_ACCOUNT_ADDRESS_BOOK?></a></td>
                        <td><a href="<?=tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL')?>" title="<?=MY_ACCOUNT_PASSWORD?>" ><?=MY_ACCOUNT_PASSWORD?></a></td>
                    </tr>
                  </table>
                  <div class="spacer10"></div>
                  <table width="100%" cellpadding="2" cellspacing="2">
                  	<tr>
                    	<td colspan="3"><h2><?php echo MY_ACCOUNT_TITLE; ?></h2></td>
                    </tr>
                    <tr>
                    	<td><span class="ui-icon ui-icon-person accountLinkListEntry"></span></td>
                        <td><span class="ui-icon ui-icon-home accountLinkListEntry"></span></td>
                        <td><span class="ui-icon ui-icon-key accountLinkListEntry"></span></td>
                    </tr>
                    <tr>
                    	<td><a href="<?=tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL')?>" title="<?=MY_ACCOUNT_INFORMATION?>" ><?=MY_ACCOUNT_INFORMATION?></a></td>
                        <td><a href="<?=tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')?>" title="<?=MY_ACCOUNT_ADDRESS_BOOK?>" ><?=MY_ACCOUNT_ADDRESS_BOOK?></a></td>
                        <td><a href="<?=tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL')?>" title="<?=MY_ACCOUNT_PASSWORD?>" ><?=MY_ACCOUNT_PASSWORD?></a></td>
                    </tr>
                  </table>
            </div>
            
            <div class="spacer10"></div>
            <!--listing end-->
          </div>
          <!--right panel end-->
          <div class="spacer10"></div>
        </div>
      </div>
    </div>
    <div class="innermidbox-bottom"></div>
  </div>
</div>
<!--middle area end-->
<div class="spacer25"></div>
</div>




<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
